package com.fjwt.gz.service.sms;

import com.alibaba.fastjson2.JSONObject;
import com.fjwt.gz.interfaces.ISmsService;
import com.fjwt.gz.zhyx.sms.SmsUtil;
import com.fjwt.gz.zhyx.sms.TYYSmsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class HenanSmsService implements ISmsService {
    @Autowired
    private TYYSmsService tyySmsService;

    //发送验证码
    @Override
    public void sendSmsCode(String sysType, String phone, String verifyCode, Integer flag) {
        //组装参数
        JSONObject reqJosn = SmsUtil.assembleSmsCode(sysType, phone, verifyCode, flag);
        //发送验证码
        tyySmsService.sendSmsCode(reqJosn);
    }





    @Override
    public Boolean sendMsg(JSONObject jsonObject) {
        return null;
    }




}
